<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

</head>
<body>
	
	请输入要删除数据的id：<input id="content" name="content"/>
	<button id="del">删除</button>
	
	
<script type="text/javascript" src="static/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
	/* 在删除按钮上绑定点击事件 */
	$("#del").on("click",function(){
		/* 发送ajax请求,删除 */
		$.ajax({
			url:"user",
			data:{
				"flag":"del",
				"id":$("#content").val()
			},
			success:function(asdf){
				alert(asdf);
			}
		})
	})
		
</script>
</body>

</html>